201. Araxis Merge File Comparison Report

Produced by Araxis Merge on 2023-03-13 03:01:05 +0000. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

201.1 Files compared

#LocationFileLast Modified
1Porto v4.0.4/Porto Theme/app/design/frontend/Smartwave/porto/Magento_CatalogWidget/templates/product/widget/contentgrid.phtml2022-10-25 07:49:02 +0000
2Porto v4.0.5/Porto Theme/app/design/frontend/Smartwave/porto/Magento_CatalogWidget/templates/product/widget/contentgrid.phtml2023-02-25 04:49:45 +0000

201.2 Comparison summary

DescriptionBetween
Files 1 and 2
Text BlocksLines
Unchanged6608
Changed48
Inserted11
Removed00

201.3 Comparison options

WhitespaceConsecutive whitespace is treated as a single space
Character caseDifferences in character case are significant
Line endingsDifferences in line endings (CR and LF characters) are ignored
CR/LF charactersNot shown in the comparison detail
Active line-pairing rules

201.4 Active regular expressions

No regular expressions were active.

201.5 Comparison detail

1 <?php 1 <?php
2 /** 2 /**
3  * Copyright © 2015 Magento. All rights reserved. 3  * Copyright © 2015 Magento. All rights reserved.
4  * See COPYING.txt for license details. 4  * See COPYING.txt for license details.
5  */ 5  */
6  6 
7 // @codingStandardsIgnoreFile 7 // @codingStandardsIgnoreFile
8  8 
9 ?> 9 ?>
10 <?php 10 <?php
11 /** 11 /**
12  * Template for displaying products list widget 12  * Template for displaying products list widget
13  * 13  *
14  * @var $block \Magento\CatalogWidget\Block\Product\ProductsList 14  * @var $block \Magento\CatalogWidget\Block\Product\ProductsList
15  */ 15  */
16 ?> 16 ?>
17 <?php if ($exist = ($block->getProductCollection() && $block->getProductCollection()->getSize())):?> 17 <?php if ($exist = ($block->getProductCollection() && $block->getProductCollection()->getSize())):?>
18 <?php 18 <?php
19 $_productCollection = $block->getLoadedProductCollection(); 19 $_productCollection = $block->getLoadedProductCollection();
20  20 
21 // Daily deal Helper 21 // Daily deal Helper
22 $_dailydealhelper =$this->helper('Smartwave\Dailydeals\Helper\Data'); 22 $_dailydealhelper =$this->helper('Smartwave\Dailydeals\Helper\Data');
23  23 
24 $_portohelper = $this->helper('Smartwave\Porto\Helper\Data'); 24 $_portohelper = $this->helper('Smartwave\Porto\Helper\Data');
25 $_category_config = $_portohelper->getConfig('porto_settings/category'); 25 $_category_config = $_portohelper->getConfig('porto_settings/category');
26 $_category_grid_config = $_portohelper->getConfig('porto_settings/category_grid'); 26 $_category_grid_config = $_portohelper->getConfig('porto_settings/category_grid');
27 $_product_label_config = $_portohelper->getConfig('porto_settings/product_label'); 27 $_product_label_config = $_portohelper->getConfig('porto_settings/product_label');
28 $_lazyload = $_portohelper->getConfig('porto_settings/optimization/lazyload'); 28 $_lazyload = $_portohelper->getConfig('porto_settings/optimization/lazyload');
29 $product_type = $_category_grid_config['product_type']; 29 $product_type = $_category_grid_config['product_type'];
30  30 
31 $_helper = $this->helper('Magento\Catalog\Helper\Output'); 31 $_helper = $this->helper('Magento\Catalog\Helper\Output');
32 $_imagehelper = $this->helper('Magento\Catalog\Helper\Image'); 32 $_imagehelper = $this->helper('Magento\Catalog\Helper\Image');
33 ?> 33 ?>
34 <?php 34 <?php
35     $type = 'widget-product-grid'; 35     $type = 'widget-product-grid';
36  36 
37     $mode = 'grid'; 37     $mode = 'grid';
38  38 
39     $image = 'category_page_list'; 39     $image = 'category_page_list';
40     $hover_image = 'category_page_list-hover'; 40     $hover_image = 'category_page_list-hover';
41     $title = $block->getTitle() ? __($block->getTitle()) : ''; 41     $title = $block->getTitle() ? __($block->getTitle()) : '';
42     $items = $block->getProductCollection()->getItems(); 42     $items = $block->getProductCollection()->getItems();
43     $column_count = $this->getData("column_count");  43     $column_count = $this->getData("column_count");
44     if($column_count == null) { 44     if($column_count == null) {
45         $column_count = 4; 45         $column_count = 4;
46     } 46     }
47     $showWishlist = true; 47     $showWishlist = true;
48     $showCompare = true; 48     $showCompare = true;
49     $showCart = true; 49     $showCart = true;
50     $templateType = \Magento\Catalog\Block\Product\ReviewRendererInterface::DEFAULT_VIEW; 50     $templateType = \Magento\Catalog\Block\Product\ReviewRendererInterface::DEFAULT_VIEW;
51     $description = false; 51     $description = false;
52     $image_width = ($_category_config['ratio_width'])?$_category_config['ratio_width']:300; 52     $image_width = ($_category_config['ratio_width'])?$_category_config['ratio_width']:300;
53     $image_height = ($_category_config['ratio_height'])?$_category_config['ratio_height']:300; 53     $image_height = ($_category_config['ratio_height'])?$_category_config['ratio_height']:300;
54     $aspect_ratio = $_category_config['aspect_ratio']; 54     $aspect_ratio = $_category_config['aspect_ratio'];
55     if($aspect_ratio)
 55     if($aspect_ratio){
56         $image_height = $image_width; 56       $image_height = $image_width;
    57     }
57 ?> 58 ?>
58         <?php if ($title):?> 59         <?php if ($title):?>
59         <div class="block-title"> 60         <div class="block-title">
60             <strong><?php /* @escapeNotVerified */ echo $title; ?></strong> 61             <strong><?php /* @escapeNotVerified */ echo $title; ?></strong>
61         </div> 62         </div>
62         <?php endif ?> 63         <?php endif ?>
63         <?php /* @escapeNotVerified */ echo '<!-- ' . $image . '-->' ?> 64         <?php /* @escapeNotVerified */ echo '<!-- ' . $image . '-->' ?>
64         <div class="products-grid products-<?php /* @escapeNotVerified */ echo $mode; ?> columns<?php echo $column_count; ?> <?php /* @escapeNotVerified */ echo $mode; ?><?php if($product_type == 2): ?> no-padding divider-line<?php endif; ?><?php if($product_type == 5 || $product_type == 6 || $product_type == 7 || $product_type == 8): ?> no-padding<?php endif; ?><?php if($product_type == 6): ?> divider-line<?php endif; ?>"> 65         <div class="products-grid products-<?php /* @escapeNotVerified */ echo $mode; ?> columns<?php echo $column_count; ?> <?php /* @escapeNotVerified */ echo $mode; ?><?php if($product_type == 2): ?> no-padding divider-line<?php endif; ?><?php if($product_type == 5 || $product_type == 6 || $product_type == 7 || $product_type == 8): ?> no-padding<?php endif; ?><?php if($product_type == 6): ?> divider-line<?php endif; ?>">
65             <ol class="products product-items <?php /* @escapeNotVerified */ echo $type; ?>"> 66             <ol class="products product-items <?php /* @escapeNotVerified */ echo $type; ?>">
66                 <?php $iterator = 1; ?> 67                 <?php $iterator = 1; ?>
67                 <?php foreach ($items as $_item): ?> 68                 <?php foreach ($items as $_item): ?>
68                     <?php /* @escapeNotVerified */ echo($iterator++ == 1) ? '<li class="item product product-item">' : '</li><li class="item product product-item">' ?> 69                     <?php /* @escapeNotVerified */ echo($iterator++ == 1) ? '<li class="item product product-item">' : '</li><li class="item product product-item">' ?>
69                     <div class="product-item-info type<?php echo $product_type; ?>" data-container="product-grid"> 70                     <div class="product-item-info type<?php echo $product_type; ?>" data-container="product-grid">
70                         <div class="product photo product-item-photo"> 71                         <div class="product photo product-item-photo">
71                           <a href="<?php echo $_item->getProductUrl() ?>" tabindex="-1"> 72                           <a href="<?php echo $_item->getProductUrl() ?>" tabindex="-1">
72                               <?php 73                               <?php
73                                   if($_category_config['aspect_ratio']) 74                                   if($_category_config['aspect_ratio'])
74                                       $productImage = $_imagehelper->init($_item, $image)->constrainOnly(FALSE)->keepAspectRatio(TRUE)->keepFrame(FALSE)->resize($image_width); 75                                       $productImage = $_imagehelper->init($_item, $image)->constrainOnly(FALSE)->keepAspectRatio(TRUE)->keepFrame(FALSE)->resize($image_width);
75                                   else 76                                   else
76                                       $productImage = $_imagehelper->init($_item, $image)->resize($image_width, $image_height); 77                                       $productImage = $_imagehelper->init($_item, $image)->resize($image_width, $image_height);
77                                   $productImageUrl = $productImage->getUrl(); 78                                   $productImageUrl = $productImage->getUrl();
78                               ?> 79                               ?>
79                                   <img class="product-image-photo default_image<?php if(!$_lazyload): ?> porto-lazyload<?php endif;?>" <?php if(!$_lazyload): ?>src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==data-<?php endif; ?>src="<?php echo $productImageUrl; ?>" width="<?php echo $image_width; ?>" height="<?php echo $image_height; ?>" alt="<?php echo $productImage->getLabel(); ?>"/> 80                                   <img class="product-image-photo default_image
src="<?php echo $productImageUrl; ?>" width="<?php echo $image_width; ?>" height="<?php echo $image_height; ?>" alt="<?php echo $productImage->getLabel(); ?>"/>
80                               <?php if($_category_config['alternative_image']): ?> 81                               <?php if($_category_config['alternative_image']): ?>
81                               <?php 82                               <?php
82                                   if($_category_config['aspect_ratio']) 83                                   if($_category_config['aspect_ratio'])
83                                       $productHoverImage = $_imagehelper->init($_item, $hover_image)->constrainOnly(FALSE)->keepAspectRatio(TRUE)->keepFrame(FALSE)->resize($image_width); 84                                       $productHoverImage = $_imagehelper->init($_item, $hover_image)->constrainOnly(FALSE)->keepAspectRatio(TRUE)->keepFrame(FALSE)->resize($image_width);
84                                   else 85                                   else
85                                       $productHoverImage = $_imagehelper->init($_item, $hover_image)->resize($image_width, $image_height); 86                                       $productHoverImage = $_imagehelper->init($_item, $hover_image)->resize($image_width, $image_height);
86                                   $productHoverImageUrl = $productHoverImage->getUrl(); 87                                   $productHoverImageUrl = $productHoverImage->getUrl();
87                               ?> 88                               ?>
88                                   <?php if($productImageUrl != str_replace("/thumbnail/","/small_image/",$productHoverImageUrl)): ?> 89                                   <?php if($productImageUrl != str_replace("/thumbnail/","/small_image/",$productHoverImageUrl)): ?>
89                                   <img class="product-image-photo hover_image<?php if(!$_lazyload): ?> porto-lazyload<?php endif;?>" <?php if(!$_lazyload): ?>src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==data-<?php endif; ?>src="<?php echo $productHoverImageUrl; ?>" width="<?php echo $image_width; ?>" height="<?php echo $image_height; ?>" alt="<?php echo $productHoverImage->getLabel(); ?>"/> 90                                   <img class="product-image-photo hover_image
src="<?php echo $productHoverImageUrl; ?>" width="<?php echo $image_width; ?>" height="<?php echo $image_height; ?>" alt="<?php echo $productHoverImage->getLabel(); ?>"/>
90                                   <?php endif; ?> 91                                   <?php endif; ?>
91                               <?php endif; ?> 92                               <?php endif; ?>
92                           </a> 93                           </a>
93                           <?php 94                           <?php
94                               $product_label = ""; 95                               $product_label = "";
95                               if($_product_label_config['sale_label']) { 96                               if($_product_label_config['sale_label']) {
96                                   if ($percentage = $_portohelper->getPercentage($_item)) { 97                                   if ($percentage = $_portohelper->getPercentage($_item)) {
97                                       if($_product_label_config['sale_label_percent']) { 98                                       if($_product_label_config['sale_label_percent']) {
98                                           $product_label .= '<div class="product-label sale-label">'.$percentage.'%'.'</div>'; 99                                           $product_label .= '<div class="product-label sale-label">'.$percentage.'%'.'</div>';
99                                       } else { 100                                       } else {
100                                           $product_label .= '<div class="product-label sale-label">'.$_product_label_config['sale_label_text'].'</div>'; 101                                           $product_label .= '<div class="product-label sale-label">'.$_product_label_config['sale_label_text'].'</div>';
101                                       } 102                                       }
102                                   } 103                                   }
103                               } 104                               }
104                               if($_product_label_config['new_label']) { 105                               if($_product_label_config['new_label']) {
105                                   $now = date("Y-m-d"); 106                                   $now = date("Y-m-d");
106                                   $newsFrom= substr($_item->getData('news_from_date')?$_item->getData('news_from_date'):'',0,10); 107                                   $newsFrom= substr($_item->getData('news_from_date')?$_item->getData('news_from_date'):'',0,10);
107                                   $newsTo=  substr($_item->getData('news_to_date')?$_item->getData('news_to_date'):'',0,10); 108                                   $newsTo=  substr($_item->getData('news_to_date')?$_item->getData('news_to_date'):'',0,10);
108  109 
109                                   if ($newsTo != '' || $newsFrom != ''){ 110                                   if ($newsTo != '' || $newsFrom != ''){
110                                       if (($newsTo != '' && $newsFrom != '' && $now>=$newsFrom && $now<=$newsTo) || ($newsTo == '' && $now >=$newsFrom) || ($newsFrom == '' && $now<=$newsTo)) { 111                                       if (($newsTo != '' && $newsFrom != '' && $now>=$newsFrom && $now<=$newsTo) || ($newsTo == '' && $now >=$newsFrom) || ($newsFrom == '' && $now<=$newsTo)) {
111                                           $product_label .= '<div class="product-label new-label">'.$_product_label_config['new_label_text'].'</div>'; 112                                           $product_label .= '<div class="product-label new-label">'.$_product_label_config['new_label_text'].'</div>';
112                                       } 113                                       }
113                                   } 114                                   }
114                               } 115                               }
115                               if($product_label) 116                               if($product_label)
116                                   echo '<div class="product-labels">'.$product_label.'</div>'; 117                                   echo '<div class="product-labels">'.$product_label.'</div>';
117                           ?> 118                           ?>
118                           <?php if($product_type == 3 || $product_type == 5 || $product_type == 6 || $product_type == 7 || $product_type == 8 || $product_type == 9): ?> 119                           <?php if($product_type == 3 || $product_type == 5 || $product_type == 6 || $product_type == 7 || $product_type == 8 || $product_type == 9): ?>
119                           <div class="product-item-inner"> 120                           <div class="product-item-inner">
120                               <div class="product actions product-item-actions"> 121                               <div class="product actions product-item-actions">
121                                   <div class="actions-primary"> 122                                   <div class="actions-primary">
122                                       <?php if ($_item->isSaleable()): ?> 123                                       <?php if ($_item->isSaleable()): ?>
123                                         <?php if ($_item->getTypeInstance()->hasRequiredOptions($_item)): ?> 124                                         <?php if ($_item->getTypeInstance()->hasRequiredOptions($_item)): ?>
124                                             <button class="action tocart primary" 125                                             <button class="action tocart primary"
125                                                     data-mage-init='{"redirectUrl":{"url":"<?php /* @escapeNotVerified */ echo $block->getAddToCartUrl($_item) ?>"}}' 126                                                     data-mage-init='{"redirectUrl":{"url":"<?php /* @escapeNotVerified */ echo $block->getAddToCartUrl($_item) ?>"}}'
126                                                     type="button" title="<?php /* @escapeNotVerified */ echo __('Add to Cart') ?>"> 127                                                     type="button" title="<?php /* @escapeNotVerified */ echo __('Add to Cart') ?>">
127                                                 <span><?php /* @escapeNotVerified */ echo __('Add to Cart') ?></span> 128                                                 <span><?php /* @escapeNotVerified */ echo __('Add to Cart') ?></span>
128                                             </button> 129                                             </button>
129                                         <?php else: ?> 130                                         <?php else: ?>
130                                             <?php 131                                             <?php
131                                                 $postDataHelper = $this->helper('Magento\Framework\Data\Helper\PostHelper'); 132                                                 $postDataHelper = $this->helper('Magento\Framework\Data\Helper\PostHelper');
132                                                 $postData = $postDataHelper->getPostData($block->getAddToCartUrl($_item), ['product' => $_item->getEntityId()]) 133                                                 $postData = $postDataHelper->getPostData($block->getAddToCartUrl($_item), ['product' => $_item->getEntityId()])
133                                             ?> 134                                             ?>
134                                             <button class="action tocart primary" 135                                             <button class="action tocart primary"
135                                                     data-post='<?php /* @escapeNotVerified */ echo $postData; ?>' 136                                                     data-post='<?php /* @escapeNotVerified */ echo $postData; ?>'
136                                                     type="button" title="<?php /* @escapeNotVerified */ echo __('Add to Cart') ?>"> 137                                                     type="button" title="<?php /* @escapeNotVerified */ echo __('Add to Cart') ?>">
137                                                 <span><?php /* @escapeNotVerified */ echo __('Add to Cart') ?></span> 138                                                 <span><?php /* @escapeNotVerified */ echo __('Add to Cart') ?></span>
138                                             </button> 139                                             </button>
139                                         <?php endif; ?> 140                                         <?php endif; ?>
140                                       <?php else: ?> 141                                       <?php else: ?>
141                                           <?php if ($_item->getIsSalable()): ?> 142                                           <?php if ($_item->getIsSalable()): ?>
142                                               <div class="stock available"><span><?php echo __('In stock') ?></span></div> 143                                               <div class="stock available"><span><?php echo __('In stock') ?></span></div>
143                                           <?php else: ?> 144                                           <?php else: ?>
144                                               <div class="stock unavailable"><span><?php echo __('Out of stock') ?></span></div> 145                                               <div class="stock unavailable"><span><?php echo __('Out of stock') ?></span></div>
145                                           <?php endif; ?> 146                                           <?php endif; ?>
146                                       <?php endif; ?> 147                                       <?php endif; ?>
147                                   </div> 148                                   </div>
148                                   <?php if ($mode == 'grid'): ?> 149                                   <?php if ($mode == 'grid'): ?>
149                                   <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()): ?> 150                                   <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()): ?>
150                                       <a href="#" 151                                       <a href="#"
151                                          class="action towishlist actions-secondary" 152                                          class="action towishlist actions-secondary"
152                                          title="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" 153                                          title="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>"
153                                          aria-label="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" 154                                          aria-label="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>"
154                                          data-post='<?php echo $block->getAddToWishlistParams($_item); ?>' 155                                          data-post='<?php echo $block->getAddToWishlistParams($_item); ?>'
155                                          data-action="add-to-wishlist" 156                                          data-action="add-to-wishlist"
156                                          role="button"> 157                                          role="button">
157                                           <span><?php echo __('Add to Wish List') ?></span> 158                                           <span><?php echo __('Add to Wish List') ?></span>
158                                       </a> 159                                       </a>
159                                   <?php endif; ?> 160                                   <?php endif; ?>
160                                   <?php endif; ?> 161                                   <?php endif; ?>
161                                   <?php if($_category_config['addtocompare']): ?> 162                                   <?php if($_category_config['addtocompare']): ?>
162                                   <?php 163                                   <?php
163                                   $compareHelper = $this->helper('Magento\Catalog\Helper\Product\Compare'); 164                                   $compareHelper = $this->helper('Magento\Catalog\Helper\Product\Compare');
164                                   ?> 165                                   ?>
165                                   <a href="#" 166                                   <a href="#"
166                                      class="action tocompare actions-secondary" 167                                      class="action tocompare actions-secondary"
167                                      title="<?php echo $block->escapeHtml(__('Add to Compare')); ?>" 168                                      title="<?php echo $block->escapeHtml(__('Add to Compare')); ?>"
168                                      aria-label="<?php echo $block->escapeHtml(__('Add to Compare')); ?>" 169                                      aria-label="<?php echo $block->escapeHtml(__('Add to Compare')); ?>"
169                                      data-post='<?php echo $compareHelper->getPostDataParams($_item); ?>' 170                                      data-post='<?php echo $compareHelper->getPostDataParams($_item); ?>'
170                                      role="button"> 171                                      role="button">
171                                       <span><?php echo __('Add to Compare') ?></span> 172                                       <span><?php echo __('Add to Compare') ?></span>
172                                   </a> 173                                   </a>
173                                   <?php endif; ?> 174                                   <?php endif; ?>
174                               </div> 175                               </div>
175                           </div> 176                           </div>
176                           <?php endif; ?> 177                           <?php endif; ?>
177                         </div> 178                         </div>
178                         <div class="product details product-item-details"> 179                         <div class="product details product-item-details">
179                           <?php 180                           <?php
180                               $_productNameStripped = $block->stripTags($_item->getName(), null, true); 181                               $_productNameStripped = $block->stripTags($_item->getName(), null, true);
181                           ?> 182                           ?>
182                           <strong class="product name product-item-name"> 183                           <strong class="product name product-item-name">
183                               <a class="product-item-link" 184                               <a class="product-item-link"
184                                  href="<?php echo $_item->getProductUrl() ?>"> 185                                  href="<?php echo $_item->getProductUrl() ?>">
185                                   <?php echo $_helper->productAttribute($_item, $_item->getName(), 'name'); ?> 186                                   <?php echo $_helper->productAttribute($_item, $_item->getName(), 'name'); ?>
186                               </a> 187                               </a>
187                           </strong> 188                           </strong>
188  189 
189                             <?php if($_category_config['rating_star']): ?> 190                             <?php if($_category_config['rating_star']): ?>
190                             <?php 191                             <?php
191                                 $review_html = $block->getReviewsSummaryHtml($_item, $templateType); 192                                 $review_html = $block->getReviewsSummaryHtml($_item, $templateType);
192                             ?> 193                             ?>
193                             <?php if($review_html): ?> 194                             <?php if($review_html): ?>
194                                 <?php echo $review_html; ?> 195                                 <?php echo $review_html; ?>
195                             <?php else: ?> 196                             <?php else: ?>
196                             <div class="product-reviews-summary short"> 197                             <div class="product-reviews-summary short">
197                                 <div class="rating-summary"> 198                                 <div class="rating-summary">
198                                     <span class="label"><span>Rating:</span></span> 199                                     <span class="label"><span>Rating:</span></span>
199                                     <div class="rating-result" title="0%"> 200                                     <div class="rating-result" title="0%">
200                                         <span style="width:0"><span>0%</span></span> 201                                         <span style="width:0"><span>0%</span></span>
201                                     </div> 202                                     </div>
202                                 </div> 203                                 </div>
203                             </div> 204                             </div>
204                             <?php endif; ?> 205                             <?php endif; ?>
205                             <?php endif; ?> 206                             <?php endif; ?>
206  207 
207                             <?php if($_category_config['product_price']): ?> 208                             <?php if($_category_config['product_price']): ?>
208                             <?php echo $block->getProductPriceHtml($_item, $type); ?> 209                             <?php echo $block->getProductPriceHtml($_item, $type); ?>
209                             <?php endif; ?> 210                             <?php endif; ?>
210                             <?php if($product_type != 3 && $product_type != 5 && $product_type != 6 && $product_type != 7 && $product_type != 8 && $product_type != 9): ?> 211                             <?php if($product_type != 3 && $product_type != 5 && $product_type != 6 && $product_type != 7 && $product_type != 8 && $product_type != 9): ?>
211                             <div class="product-item-inner"> 212                             <div class="product-item-inner">
212                                 <div class="product actions product-item-actions"> 213                                 <div class="product actions product-item-actions">
213                                     <?php if ($mode == 'grid'): ?> 214                                     <?php if ($mode == 'grid'): ?>
214                                     <?php if($_category_config['addtowishlist'] && $product_type != 4): ?> 215                                     <?php if($_category_config['addtowishlist'] && $product_type != 4): ?>
215                                     <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()): ?> 216                                     <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()): ?>
216                                         <a href="#" 217                                         <a href="#"
217                                            class="action towishlist actions-secondary" 218                                            class="action towishlist actions-secondary"
218                                            title="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" 219                                            title="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>"
219                                            aria-label="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" 220                                            aria-label="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>"
220                                            data-post='<?php echo $block->getAddToWishlistParams($_item); ?>' 221                                            data-post='<?php echo $block->getAddToWishlistParams($_item); ?>'
221                                            data-action="add-to-wishlist" 222                                            data-action="add-to-wishlist"
222                                            role="button"> 223                                            role="button">
223                                             <span><?php echo __('Add to Wish List') ?></span> 224                                             <span><?php echo __('Add to Wish List') ?></span>
224                                         </a> 225                                         </a>
225                                     <?php endif; ?> 226                                     <?php endif; ?>
226                                     <?php endif; ?> 227                                     <?php endif; ?>
227                                     <?php endif; ?> 228                                     <?php endif; ?>
228                                     <div class="actions-primary"> 229                                     <div class="actions-primary">
229                                         <?php if ($_item->isSaleable()): ?> 230                                         <?php if ($_item->isSaleable()): ?>
230                                           <?php if ($_item->getTypeInstance()->hasRequiredOptions($_item)): ?> 231                                           <?php if ($_item->getTypeInstance()->hasRequiredOptions($_item)): ?>
231                                               <button class="action tocart primary" 232                                               <button class="action tocart primary"
232                                                       data-mage-init='{"redirectUrl":{"url":"<?php /* @escapeNotVerified */ echo $block->getAddToCartUrl($_item) ?>"}}' 233                                                       data-mage-init='{"redirectUrl":{"url":"<?php /* @escapeNotVerified */ echo $block->getAddToCartUrl($_item) ?>"}}'
233                                                       type="button" title="<?php /* @escapeNotVerified */ echo __('Add to Cart') ?>"> 234                                                       type="button" title="<?php /* @escapeNotVerified */ echo __('Add to Cart') ?>">
234                                                   <span><?php /* @escapeNotVerified */ echo __('Add to Cart') ?></span> 235                                                   <span><?php /* @escapeNotVerified */ echo __('Add to Cart') ?></span>
235                                               </button> 236                                               </button>
236                                           <?php else: ?> 237                                           <?php else: ?>
237                                               <?php 238                                               <?php
238                                                   $postDataHelper = $this->helper('Magento\Framework\Data\Helper\PostHelper'); 239                                                   $postDataHelper = $this->helper('Magento\Framework\Data\Helper\PostHelper');
239                                                   $postData = $postDataHelper->getPostData($block->getAddToCartUrl($_item), ['product' => $_item->getEntityId()]) 240                                                   $postData = $postDataHelper->getPostData($block->getAddToCartUrl($_item), ['product' => $_item->getEntityId()])
240                                               ?> 241                                               ?>
241                                               <button class="action tocart primary" 242                                               <button class="action tocart primary"
242                                                       data-post='<?php /* @escapeNotVerified */ echo $postData; ?>' 243                                                       data-post='<?php /* @escapeNotVerified */ echo $postData; ?>'
243                                                       type="button" title="<?php /* @escapeNotVerified */ echo __('Add to Cart') ?>"> 244                                                       type="button" title="<?php /* @escapeNotVerified */ echo __('Add to Cart') ?>">
244                                                   <span><?php /* @escapeNotVerified */ echo __('Add to Cart') ?></span> 245                                                   <span><?php /* @escapeNotVerified */ echo __('Add to Cart') ?></span>
245                                               </button> 246                                               </button>
246                                           <?php endif; ?> 247                                           <?php endif; ?>
247                                         <?php else: ?> 248                                         <?php else: ?>
248                                             <?php if ($_item->getIsSalable()): ?> 249                                             <?php if ($_item->getIsSalable()): ?>
249                                                 <div class="stock available"><span><?php echo __('In stock') ?></span></div> 250                                                 <div class="stock available"><span><?php echo __('In stock') ?></span></div>
250                                             <?php else: ?> 251                                             <?php else: ?>
251                                                 <div class="stock unavailable"><span><?php echo __('Out of stock') ?></span></div> 252                                                 <div class="stock unavailable"><span><?php echo __('Out of stock') ?></span></div>
252                                             <?php endif; ?> 253                                             <?php endif; ?>
253                                         <?php endif; ?> 254                                         <?php endif; ?>
254                                     </div> 255                                     </div>
255                                     <?php if ($mode == 'grid'): ?> 256                                     <?php if ($mode == 'grid'): ?>
256                                     <?php if($_category_config['addtowishlist'] && $product_type == 4): ?> 257                                     <?php if($_category_config['addtowishlist'] && $product_type == 4): ?>
257                                     <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()): ?> 258                                     <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()): ?>
258                                         <a href="#" 259                                         <a href="#"
259                                            class="action towishlist actions-secondary" 260                                            class="action towishlist actions-secondary"
260                                            title="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" 261                                            title="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>"
261                                            aria-label="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" 262                                            aria-label="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>"
262                                            data-post='<?php echo $block->getAddToWishlistParams($_item); ?>' 263                                            data-post='<?php echo $block->getAddToWishlistParams($_item); ?>'
263                                            data-action="add-to-wishlist" 264                                            data-action="add-to-wishlist"
264                                            role="button"> 265                                            role="button">
265                                             <span><?php echo __('Add to Wish List') ?></span> 266                                             <span><?php echo __('Add to Wish List') ?></span>
266                                         </a> 267                                         </a>
267                                     <?php endif; ?> 268                                     <?php endif; ?>
268                                     <?php endif; ?> 269                                     <?php endif; ?>
269                                     <?php endif; ?> 270                                     <?php endif; ?>
270                                     <?php if ($mode == 'list'): ?> 271                                     <?php if ($mode == 'list'): ?>
271                                     <?php if($_category_config['addtowishlist']): ?> 272                                     <?php if($_category_config['addtowishlist']): ?>
272                                     <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()): ?> 273                                     <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()): ?>
273                                         <a href="#" 274                                         <a href="#"
274                                            class="action towishlist actions-secondary" 275                                            class="action towishlist actions-secondary"
275                                            title="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" 276                                            title="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>"
276                                            aria-label="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" 277                                            aria-label="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>"
277                                            data-post='<?php echo $block->getAddToWishlistParams($_item); ?>' 278                                            data-post='<?php echo $block->getAddToWishlistParams($_item); ?>'
278                                            data-action="add-to-wishlist" 279                                            data-action="add-to-wishlist"
279                                            role="button"> 280                                            role="button">
280                                             <span><?php echo __('Add to Wish List') ?></span> 281                                             <span><?php echo __('Add to Wish List') ?></span>
281                                         </a> 282                                         </a>
282                                     <?php endif; ?> 283                                     <?php endif; ?>
283                                     <?php endif; ?> 284                                     <?php endif; ?>
284                                     <?php endif; ?> 285                                     <?php endif; ?>
285                                     <?php if($_category_config['addtocompare']): ?> 286                                     <?php if($_category_config['addtocompare']): ?>
286                                     <?php 287                                     <?php
287                                     $compareHelper = $this->helper('Magento\Catalog\Helper\Product\Compare'); 288                                     $compareHelper = $this->helper('Magento\Catalog\Helper\Product\Compare');
288                                     ?> 289                                     ?>
289                                     <a href="#" 290                                     <a href="#"
290                                        class="action tocompare actions-secondary" 291                                        class="action tocompare actions-secondary"
291                                        title="<?php echo $block->escapeHtml(__('Add to Compare')); ?>" 292                                        title="<?php echo $block->escapeHtml(__('Add to Compare')); ?>"
292                                        aria-label="<?php echo $block->escapeHtml(__('Add to Compare')); ?>" 293                                        aria-label="<?php echo $block->escapeHtml(__('Add to Compare')); ?>"
293                                        data-post='<?php echo $compareHelper->getPostDataParams($_item); ?>' 294                                        data-post='<?php echo $compareHelper->getPostDataParams($_item); ?>'
294                                        role="button"> 295                                        role="button">
295                                         <span><?php echo __('Add to Compare') ?></span> 296                                         <span><?php echo __('Add to Compare') ?></span>
296                                     </a> 297                                     </a>
297                                     <?php endif; ?> 298                                     <?php endif; ?>
298                                 </div> 299                                 </div>
299                             </div> 300                             </div>
300                             <?php endif; ?> 301                             <?php endif; ?>
301                         </div> 302                         </div>
302                     </div> 303                     </div>
303                     <?php echo($iterator == count($items)+1) ? '</li>' : '' ?> 304                     <?php echo($iterator == count($items)+1) ? '</li>' : '' ?>
304                 <?php endforeach ?> 305                 <?php endforeach ?>
305             </ol> 306             </ol>
306         </div> 307         </div>
307         <?php echo $block->getPagerHtml() ?> 308         <?php echo $block->getPagerHtml() ?>
308 <?php endif;?> 309 <?php endif;?>